package com.moss.cloud.base.biz.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.moss.cloud.base.api.model.from.BaseFrom;
import com.moss.cloud.base.api.model.from.FlowGroupFrom;
import com.moss.cloud.base.api.model.from.FlowGroupParam;
import com.moss.cloud.base.biz.model.FlowGroup;

import java.util.List;


/**
 * 流程分组业务接口
 *
 * @author 瑾年
 * @date 2024-02-04
 */
public interface IFlowGroupService extends IService<FlowGroup> {

    /**
     * 分页查询
     *
     * @param param
     * @return
     */
    IPage<FlowGroup> page(FlowGroupParam param);

    /**
     * 列表查询
     *
     * @param param
     * @return
     */
    List<FlowGroup> groupList(FlowGroupParam param);

    /**
     * 新增
     *
     * @param from
     * @return
     */
    boolean saveFlowGroup(FlowGroupFrom from);

    /**
     * 更新
     *
     * @param from
     * @return
     */
    boolean update(FlowGroupFrom from);

    /**
     * 删除
     *
     * @param baseFrom
     * @return
     */
    boolean remove(BaseFrom baseFrom);


}
